$ dd if=/dev/zero of=XenGuest1.img bs=1024k seek=6144 count=0
$ mkfs -t ext3 XenGuest1.img
References :
Building a Xen Virtual Guest Filesystem on a Disk Image (Cloning Host System) - Virtuatopia
$ dd if=/dev/zero of=XenGuest1.img bs=1024k seek=6144 count=0
$ mkfs -t ext3 XenGuest1.img
# ifconfig eth0 inet6 add 2001:470:f902::1/48
// radvd - Router Advertisement Daemon
# apt-get install radvd
# vi /etc/radvd.conf
interface eth0 #The interface used to send ADV# /etc/init.d/radvd restart
{
AdvSendAdvert on; #Enable Advertisements
#AdvManagedFlag on; #Enable Managed bit
#AdvOtherConfigFlag on; #Enable Other Configure bit
MinRtrAdvInterval 3; #Set min. interval to send adv.
MaxRtrAdvInterval 10; #Set max. interval to send adv.
prefix 2001:470:f902::/48 #Prefix
{
AdvOnLink on; #Adv. Using Link Layer
AdvAutonomous on; #Autonomous Flag
#AdvRouterAddr on;
};
};# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
# ifconfig eth0 inet6 add 2001:470:f902::2/48
# route -A inet6 add ::/0 dev eth0
# route -A inet6 // show ipv6 route
$ ping6 2001:470:f902::2/48 // gateway
$ ping6 2600::
# vi debian.cfg
console='hvc0'
xencons='tty'
或 boot kernel command line
# vi /mnt/boot/grub/menu.lstkernel /boot/vmlinuz-3.2.0-4-amd64 root=/dev/xvda1 ro quiet console=hvc0 xencons=tty
# mount -o loop debian.img /mnt
# vi /mnt/etc/inittab
1:2345:respawn:/sbin/getty 38400 tty1改成1:2345:respawn:/sbin/getty 38400 hvc0
# xm create debian.cfg -c
> VBoxManage.exe clonehd D:\Win7Orig.vdi D:\Win7Orig.vmdk --format VMDK
> qemu-img.exe convert D:\Win7Orig.vmdk -O qcow D:\Win7Orig.img
2. 下載 convirt appliance xen config,并修改你的映像檔位置
# vi convirt_appliance
disk=['file:/home/xen/c2_appliance.disk.xm,hda,w']
3. 啟動虛擬系統
# xm create convirt_appliance
4. 使用 vnc 連線,登入密碼為 convirt/convirt、cms/convirt、cms/cms
$ vncviewer your.xen.server:5900
$ cd ~/convirt
$ ./convirt-ctl start
http://your.convirt.web:8081/
# wget http://www.convirture.com/downloads/convirture-tools/2.1.1/convirture-tools-2.1.1.tar.gz
# cd convirture-tools/install/managed_server/scripts
# ./convirt-tool --detect_only setup
# ./convirt-tool install_dependencies
# ./convirt-tool setup
# vi /etc/xen/xend-config.sxp
- # /etc/init.d/xen restart
- # netstat -anltup | grep -n "[8002|8006]"
# vi /etc/modules
[...]loop max_loop=64
# vi /etc/xen/xend-config.sxp
[...]
(network-script network-bridge)
(network-script 'network-bridge netdev=eth1')
(network-script 'network-bridge antispoof=yes')
[...]
#(network-script network-dummy)
[...]
(vif-script vif-bridge)[...]
# vi /etc/default/xendomains
#XENDOMAINS_RESTORE=true
XENDOMAINS_RESTORE=false...
#XENDOMAINS_SAVE=/var/lib/xen/save
XENDOMAINS_SAVE=""
# vi /boot/grub/menu.lst
title Xen 4.1-i386 / Debian GNU/Linux, kernel 3.2.0-3-686-pae
root (hd0,0) kernel /boot/xen-4.1-i386.gz dom0_mem=256M vga=792
module /boot/vmlinuz-3.2.0-3-686-pae root=/dev/sda1 ro console=tty0module /boot/initrd.img-3.2.0-3-686-pae
# vi /etc/xen/xend-config.sxp
(xend-unix-server yes)
# vi /etc/xen/xend-config.sxp
(vnc-listen '0.0.0.0')