Skip to content

Commit 1aefbd7

Browse files
committed
test10
Signed-off-by: Corey Hemminger <[email protected]>
1 parent 2c97c02 commit 1aefbd7

4 files changed

+10
-10
lines changed

amazonlinux-2-x86_64-virtualbox-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ echo "Creating the VM"
3636
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html
3737
VBoxManage createvm --name $VM --ostype "RedHat_64" --register
3838
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
4141
VBoxManage modifyvm $VM --memory 2048
4242
VBoxManage modifyvm $VM --cpus 2
4343
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
4848
VBoxManage startvm $VM --type headless
4949
sleep 120
5050
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
5252
sleep 5
5353

5454
echo Exporting the VM to an OVF file

amazonlinux-2023-aarch64-virtualbox-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ echo "Creating the VM"
3838
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html
3939
VBoxManage createvm --name $VM --ostype "Fedora_64" --register
4040
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
4343
VBoxManage modifyvm $VM --chipset ich9
4444
VBoxManage modifyvm $VM --firmware efi
4545
VBoxManage modifyvm $VM --memory 2048
@@ -56,7 +56,7 @@ echo "Sleeping for 120 seconds to let the system boot and cloud-init to run"
5656
VBoxManage startvm $VM --type headless
5757
sleep 120
5858
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
6060
sleep 5
6161

6262
echo "Exporting the VM to an OVF file"

amazonlinux-2023-x86_64-virtualbox-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ echo "Creating the VM"
3838
# from https://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html
3939
VBoxManage createvm --name $VM --ostype "Fedora_64" --register
4040
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
4343
VBoxManage modifyvm $VM --memory 2048
4444
VBoxManage modifyvm $VM --cpus 2
4545
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"
5454
VBoxManage startvm $VM --type headless
5555
sleep 120
5656
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
5858
sleep 5
5959

6060
echo "Exporting the VM to an OVF file"

lib/bento/providermetadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def ver_vbox
9393
end
9494

9595
def ver_libvirt
96-
cmd = Mixlib::ShellOut.new('/usr/local/opt/libvirt/sbin/libvirtd -V')
96+
cmd = Mixlib::ShellOut.new('libvirtd -V')
9797
cmd.run_command
9898
cmd.stdout.split(' ').last
9999
end

0 commit comments

Comments
 (0)