Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hacks-virtualbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
b3
hacks-virtualbox
Commits
8d8a6482
Commit
8d8a6482
authored
4 months ago
by
Bruno BEAUFILS
Browse files
Options
Downloads
Patches
Plain Diff
Ajoute la modification de l'UUID dans export-disks
parent
ee697064
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
makefile
+5
-2
5 additions, 2 deletions
makefile
with
5 additions
and
2 deletions
makefile
+
5
−
2
View file @
8d8a6482
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
# 3. une fois l'installation terminée (il faut attendre que la machine
# 3. une fois l'installation terminée (il faut attendre que la machine
# virtuelle s'arrête) à partir de la machine ainsi construite soit :
# virtuelle s'arrête) à partir de la machine ainsi construite soit :
#
#
# - copier son disque (cible `export-disk`)
# - copier son disque (cible `export-disk`). Si UUID est fixé le
# - disque exporté avec UUID comme référence.
#
#
# - exporter la machine virtuelle en OVF (cible `export-ovf ou
# - exporter la machine virtuelle en OVF (cible `export-ovf ou
# `export-ova`)
# `export-ova`)
...
@@ -89,7 +90,7 @@ doc:
...
@@ -89,7 +90,7 @@ doc:
## afficher la configuration actuelle
## afficher la configuration actuelle
conf
:
conf
:
@$(
foreach VAR,VBOXES NAME DISKSIZE RAM DESC PRESEED POSTINST ISO TYPE CTRL DEST DISQUES,printf
"%-8s =
$($(
VAR
))
\n
"
$(
VAR
)
;)
@$(
foreach VAR,VBOXES NAME DISKSIZE RAM DESC PRESEED POSTINST ISO TYPE CTRL DEST DISQUES
UUID
,printf
"%-8s =
$($(
VAR
))
\n
"
$(
VAR
)
;)
## créer la VM
## créer la VM
build-vm
:
build-vm
:
...
@@ -124,6 +125,8 @@ compact-disks:
...
@@ -124,6 +125,8 @@ compact-disks:
## copier les disques de la VM
## copier les disques de la VM
export-disks
:
export-disks
:
$(
foreach D,
$(
DISQUES
)
, vboxmanage clonemedium
$(
D
)
$(
subst
-0
.vdi,.vdi,
$(
DEST
)
/
$(
notdir
$(
D
)))
--format
=
VDI
;
)
$(
foreach D,
$(
DISQUES
)
, vboxmanage clonemedium
$(
D
)
$(
subst
-0
.vdi,.vdi,
$(
DEST
)
/
$(
notdir
$(
D
)))
--format
=
VDI
;
)
test
$(
UUID
)
&&
vbox-img setuuid
--filename
$(
subst
-0
.vdi,.vdi,
$(
DEST
)
/
$(
notdir
$(
firstword
$(
DISQUES
))))
--uuid
$(
UUID
)
# test $(UUID) && vboxmanage internalcommands sethhduuid $(subst -0.vdi,.vdi,$(DEST)/$(notdir $(firstword $(DISQUES)))) $(UUID)
## exporter la VM en OVF (.ovf + .vmdk)
## exporter la VM en OVF (.ovf + .vmdk)
export-ovf
:
export-ovf
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment