File tree 4 files changed +10
-10
lines changed 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ echo "Creating the VM"
36
36
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html
37
37
VBoxManage createvm --name $VM --ostype " RedHat_64" --register
38
38
VBoxManage storagectl $VM --name " SATA Controller" --add sata --controller IntelAHCI
39
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 0 --device 0 -- type hdd --medium " $AMZDIR " /amazon2_x86_64.vdi
40
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --device 0 -- type dvddrive --medium " $AMZDIR " /seed.iso
39
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 0 --type hdd --medium " $AMZDIR " /amazon2_x86_64.vdi
40
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --type dvddrive --medium " $AMZDIR " /seed.iso
41
41
VBoxManage modifyvm $VM --memory 2048
42
42
VBoxManage modifyvm $VM --cpus 2
43
43
VBoxManage modifyvm $VM --audio-driver none
@@ -48,7 +48,7 @@ echo Sleeping for 120 seconds to let the system boot and cloud-init to run
48
48
VBoxManage startvm $VM --type headless
49
49
sleep 120
50
50
VBoxManage controlvm $VM poweroff --type headless
51
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --device 0 -- type dvddrive --medium none
51
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --type dvddrive --medium none
52
52
sleep 5
53
53
54
54
echo Exporting the VM to an OVF file
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ echo "Creating the VM"
38
38
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html
39
39
VBoxManage createvm --name $VM --ostype " Fedora_64" --register
40
40
VBoxManage storagectl $VM --name " SATA Controller" --add sata --controller IntelAHCI
41
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 0 --device 0 -- type hdd --medium " $AMZDIR " /amazon2023_arm64.vdi
42
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --device 0 -- type dvddrive --medium " $AMZDIR " /seed.iso
41
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 0 --type hdd --medium " $AMZDIR " /amazon2023_arm64.vdi
42
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --type dvddrive --medium " $AMZDIR " /seed.iso
43
43
VBoxManage modifyvm $VM --chipset ich9
44
44
VBoxManage modifyvm $VM --firmware efi
45
45
VBoxManage modifyvm $VM --memory 2048
@@ -56,7 +56,7 @@ echo "Sleeping for 120 seconds to let the system boot and cloud-init to run"
56
56
VBoxManage startvm $VM --type headless
57
57
sleep 120
58
58
VBoxManage controlvm $VM poweroff --type headless
59
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --device 0 -- type dvddrive --medium none
59
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --type dvddrive --medium none
60
60
sleep 5
61
61
62
62
echo " Exporting the VM to an OVF file"
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ echo "Creating the VM"
38
38
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html
39
39
VBoxManage createvm --name $VM --ostype " Fedora_64" --register
40
40
VBoxManage storagectl $VM --name " SATA Controller" --add sata --controller IntelAHCI
41
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 0 --device 0 -- type hdd --medium " $AMZDIR " /amazon2023_x86_64.vdi
42
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --device 0 -- type dvddrive --medium " $AMZDIR " /seed.iso
41
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 0 --type hdd --medium " $AMZDIR " /amazon2023_x86_64.vdi
42
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --type dvddrive --medium " $AMZDIR " /seed.iso
43
43
VBoxManage modifyvm $VM --memory 2048
44
44
VBoxManage modifyvm $VM --cpus 2
45
45
VBoxManage modifyvm $VM --nat-localhostreachable1 on
@@ -54,7 +54,7 @@ echo "Sleeping for 120 seconds to let the system boot and cloud-init to run"
54
54
VBoxManage startvm $VM --type headless
55
55
sleep 120
56
56
VBoxManage controlvm $VM poweroff --type headless
57
- VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --device 0 -- type dvddrive --medium none
57
+ VBoxManage storageattach $VM --storagectl " SATA Controller" --port 1 --type dvddrive --medium none
58
58
sleep 5
59
59
60
60
echo " Exporting the VM to an OVF file"
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def ver_vbox
93
93
end
94
94
95
95
def ver_libvirt
96
- cmd = Mixlib ::ShellOut . new ( '/usr/local/opt/libvirt/sbin/ libvirtd -V' )
96
+ cmd = Mixlib ::ShellOut . new ( 'libvirtd -V' )
97
97
cmd . run_command
98
98
cmd . stdout . split ( ' ' ) . last
99
99
end
You can’t perform that action at this time.
0 commit comments