![]() ![]() # setup NAT (need to run "sudo dhclient" on host before this works) VBoxManage modifyvm $NEW_VM_NAME -nictype1 82540EM -nic1 hostonly -hostonlyadapter1 vboxnet0 # setup an internal network via the primary interface VBoxManage modifyvm $NEW_VM_NAME -ostype Ubuntu_64 -clipboard disabled -memory 512 -cpus 1 -acpi on -ioapic off -rtcuseutc on -hwvirtex on -nestedpaging on -bioslogofadein off -bioslogofadeout off -boot1 disk # modify the VM using sane linux server defaults VBoxManage createvm -name $NEW_VM_NAME -register VBoxManage internalcommands sethduuid $NEW_VDI_PATHĮcho "Creating new virtual machine: ' $NEW_VM_NAME' " # copy the template disk image to the new image location and assign a new UUIDĮcho "Creating new virtual disk image: ' $NEW_VDI_PATH' from base file: ' $USE_VDI_PATH' " # use template image to create a new disk image Tar -xvf $VDI_TEMP/ $USE_VM_NAME.tgz -C $VDI_TEMP/ Wget -timeout=1 -wait=1 -c $USE_VM_NAME.tgz -O $VDI_TEMP/ $USE_VM_NAME.tgz # if file already exists, "wget" will skip retrieving it by default # download disk image (continues partial downloads) "Įcho "You might try the command 'VBoxManage unregistervm $NEW_VM_NAME -delete' " # quit if the disk image file exists (should we allow a switch to force overwrite?)Įcho "Please try again after correcting the situation. ![]() # Check that we aren't trying to clobber an existing VDI file # name of virtual machine to manage/create # Setup a proper name for the new virtual machine # Template VM Name (probably should be based on provided argument but good for now) # virtual disk image root directory (a dedicated user/admin account is recommended) # NOT RECOMMENDED TO MODIFY UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING! VBOX_LATEST_FILE_OSX= $(wget -q $.vbox-extpack ![]()
0 Comments
Leave a Reply. |