Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erwan BOUSSE
ubuntu-vm-creator
Commits
47b6af2a
Commit
47b6af2a
authored
Nov 10, 2020
by
Erwan BOUSSE
Browse files
Fix convert to vbox
parent
69a02a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
convert_to_vbox.sh
View file @
47b6af2a
...
@@ -15,8 +15,8 @@ VBoxManage unregistervm "mini-ubuntu" --delete || true
...
@@ -15,8 +15,8 @@ VBoxManage unregistervm "mini-ubuntu" --delete || true
rm
-rf
vbox
rm
-rf
vbox
mkdir
-p
vbox
mkdir
-p
vbox
VBoxManage convertfromraw
--format
vdi
$OUTPUT_IMG
vbox/image.vdi
VBoxManage convertfromraw
--format
vdi
$OUTPUT_IMG
$OUTPUT_VDI
VBoxManage createvm
--name
"mini-ubuntu"
--ostype
"Ubuntu_64"
--register
--basefolder
./vbox
VBoxManage createvm
--name
"mini-ubuntu"
--ostype
"Ubuntu_64"
--register
--basefolder
$OUTPUT_FOLDER
VBoxManage storagectl
"mini-ubuntu"
--name
"SATA Controller"
--add
sata
--controller
IntelAhci
--portcount
1
VBoxManage storagectl
"mini-ubuntu"
--name
"SATA Controller"
--add
sata
--controller
IntelAhci
--portcount
1
VBoxManage storageattach
"mini-ubuntu"
--storagectl
"SATA Controller"
--port
0
--device
0
--type
hdd
--medium
$OUTPUT_VDI
VBoxManage storageattach
"mini-ubuntu"
--storagectl
"SATA Controller"
--port
0
--device
0
--type
hdd
--medium
$OUTPUT_VDI
VBoxManage modifyvm
"mini-ubuntu"
\
VBoxManage modifyvm
"mini-ubuntu"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment