Virtualbox: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 22: Zeile 22:
  
 
*http://www.thomas-krenn.com/de/wiki/Virtuelle_Maschine_in_VirtualBox_klonen
 
*http://www.thomas-krenn.com/de/wiki/Virtuelle_Maschine_in_VirtualBox_klonen
 +
 +
==lvm und virtualbox==
 +
 +
First, I created the lvm volume
 +
 +
lvcreate --name www --size 10G images
 +
 +
Next, I created a vmdk file which describes the disk properties using the VBoxManage command:
 +
 +
VBoxManage internalcommands createrawvmdk -filename /vbox/www.vmdk -rawdisk /dev/images/www
 +
 +
Here are the contents of the vmdk file after running that command:
 +
 +
# Disk DescriptorFile
 +
version=1
 +
CID=e5ee218c
 +
parentCID=ffffffff
 +
createType="fullDevice"
 +
 +
# Extent description
 +
RW 20971520 FLAT "/dev/images/www" 0
 +
 +
# The disk Data Base
 +
#DDB
 +
 +
ddb.virtualHWVersion = "4"
 +
ddb.adapterType="ide"
 +
ddb.geometry.cylinders="16383"
 +
ddb.geometry.heads="16"
 +
ddb.geometry.sectors="63"
 +
ddb.uuid.image="46527bd3-f962-43cc-8a43-11aafd3425aa"
 +
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
 +
ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
 +
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
 +
ddb.geometry.biosCylinders="1024"
 +
ddb.geometry.biosHeads="255"
 +
ddb.geometry.biosSectors="63"
 +
 +
 +
*https://www.soljerome.com/blog/2010/09/07/using-lvm-volumes-with-virtualbox/

Version vom 4. Februar 2013, 13:48 Uhr

VirtualBox OSE (Open Source Edition

Installation aus den Paketquellen

sudo apt-get install virtualbox-ose virtualbox-ose-qt virtualbox-ose-dkms virtualbox-ose-guest-dkms linux-headers-$(uname -r)

Nacharbeit

sudo adduser <benutzername> vboxusers

Install VirtualBox in Ubuntu 12.10

Use VirtualBox to run Windows and other OS in Ubuntu 12.10 By Jim Lynch, ITworld | Software, run windows ubuntu 12.10, virtualbox ubuntu 12.10 7

echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-4.2 linux-headers-$(uname -r)

Nacharbeit

sudo /etc/init.d/vboxdrv setup

Klonen

Disk

VBoxManage clonehd vm1.vdi vm2.vdi 


lvm und virtualbox

First, I created the lvm volume

lvcreate --name www --size 10G images

Next, I created a vmdk file which describes the disk properties using the VBoxManage command:

VBoxManage internalcommands createrawvmdk -filename /vbox/www.vmdk -rawdisk /dev/images/www

Here are the contents of the vmdk file after running that command:

# Disk DescriptorFile
version=1
CID=e5ee218c
parentCID=ffffffff
createType="fullDevice"

# Extent description
RW 20971520 FLAT "/dev/images/www" 0 
# The disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.adapterType="ide"
ddb.geometry.cylinders="16383"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"
ddb.uuid.image="46527bd3-f962-43cc-8a43-11aafd3425aa"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
ddb.geometry.biosCylinders="1024"
ddb.geometry.biosHeads="255"
ddb.geometry.biosSectors="63"