diff options
Diffstat (limited to 'src/os-plugins/plugins/virtualbox/files/run-virt.include')
-rw-r--r-- | src/os-plugins/plugins/virtualbox/files/run-virt.include | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/os-plugins/plugins/virtualbox/files/run-virt.include b/src/os-plugins/plugins/virtualbox/files/run-virt.include index f5eb3c16..84410f8e 100644 --- a/src/os-plugins/plugins/virtualbox/files/run-virt.include +++ b/src/os-plugins/plugins/virtualbox/files/run-virt.include @@ -181,8 +181,10 @@ writelog "\tMachine config:\t\t$machconfig" ### Hardware checks ################################################################################ -# remove ':' from MAC addr for vbox +# remove ':' from MAC addr for vbox and generate a VDE (virtual device ethernet) +# MAC addr from the first one (put in prefix 0DE) macaddr=$(echo ${macaddr} | sed 's/://g') +vdemacaddr=$(echo ${macaddr} | sed 's/^..../00DE/g') # machine UUID, MAC addr part of it machineuuid="00000000-0000-0000-0000-${macaddr}" |