Ref:
shrink disk:
http://kegel.com/linux/jeos-vmware-player/jeos-vmware-player-howto.html
install grub:
http://ubuntuforums.org/showpost.php?p=117829&postcount=2
In summary:
1. install everything on VM1. Then remove unnecessary files.
2. add a second virtual disk.
3. boot from a liveCD,such as Ubuntu desktop 8.0.4
4. partition the second hard disk and copy files to it. (/mnt is the second hard disk)
fdisk /dev/sda (and type 'p' to print the partition table)
fdisk /dev/sdb (and use the n, t, and w commands to recreate the same table)
mkfs.ext3 /dev/sdb1
mount /dev/sdb1 /mnt
cd / (target)
ls egrep -v 'procsyslost.found' > /files.txt
cp -a `cat /files.txt` /mnt
5. Install grub (mbr) to be bootable:
1) Type "grub" in a console
2) Type "root (hd1,0)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sdb1, which translates to hd1,0 for grub).
3) Type "setup (hd1)", or whatever your harddisk No. is.
4) Quit grub by typing "quit".
6. shutdown VM. remove the first hard disk.
7. boot.
Thursday, January 29, 2009
Tuesday, January 27, 2009
debug Xen
1. debug dom0 and dom u
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00195.html
2. build option :
http://en.opensuse.org/How_to_Capture_Xen_Hypervisor_and_Kernel_Messages_using_a_Serial_Cable
4. KDB
http://lists.xensource.com/archives/html/xen-devel/2008-11/msg00165.html
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00195.html
2. build option :
Xen provides a number of build-time options which should be set as environment variables or passed on make's command-line.
- verbose=y
- Enable debugging messages when Xen detects an unexpected condition. Also enables console output from all domains.
- debug=y
- Enable debug assertions. Implies verbose=y. (Primarily useful for tracing bugs in Xen).
- debugger=y
- Enable the in-Xen debugger. This can be used to debug Xen, guest OSes, and applications.
- perfc=y
- Enable performance counters for significant events within Xen. The counts can be reset or displayed on Xen's console via console control keys.
http://en.opensuse.org/How_to_Capture_Xen_Hypervisor_and_Kernel_Messages_using_a_Serial_Cable
4. KDB
http://lists.xensource.com/archives/html/xen-devel/2008-11/msg00165.html
qemu usage
1. qemu-img create -f qcow2 win.qcow 4G
2. qemu -boot d -cdrom /dev/cdrom -hda win.qcow
http://www.debian-administration.org/articles/40
http://wiki.archlinux.org/index.php/Qemu
2. qemu -boot d -cdrom /dev/cdrom -hda win.qcow
http://www.debian-administration.org/articles/40
http://wiki.archlinux.org/index.php/Qemu
Monday, January 26, 2009
Thursday, January 22, 2009
Wednesday, January 21, 2009
Xen passthrough IO
http://www.wlug.org.nz/XenPciPassthrough
http://forums.opensuse.org/install-boot-login/400984-xen-passthrough-nic.html#post1903926
http://lists.xensource.com/archives/html/xen-users/2007-11/msg00684.html
http://www.novell.com/communities/node/2880/assign-dedicated-network-card-or-pci-device-xen-virtual-machine
http://wiki.xensource.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_module
http://forums.opensuse.org/install-boot-login/400984-xen-passthrough-nic.html#post1903926
http://lists.xensource.com/archives/html/xen-users/2007-11/msg00684.html
http://www.novell.com/communities/node/2880/assign-dedicated-network-card-or-pci-device-xen-virtual-machine
http://wiki.xensource.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_module
HowTo: Create a list of installed packages for Ubuntu
Ref: http://ubuntuforums.org/showthread.php?t=261366
HowTo: Create a list of installed packages
I found out how to do this recently and thought it might be helpful to some people. To output this information to a file in your home directory you would use,
followed by
HowTo: Create a list of installed packages
I found out how to do this recently and thought it might be helpful to some people. To output this information to a file in your home directory you would use,
dpkg --get-selections > installed-softwareAnd if you wanted to use the list to reinstall this software on a fresh ubuntu setup,
dpkg --set-selections
followed by
dselect
Tuesday, January 20, 2009
Install Flash player on Ubuntu 8.04 server
1. apt-get install libcurl3
2. download xx-flash.deb from adobe website.
3. dpkg -i xx-flash.deb (if not installed libcurl3, this cmd will show the error).
done
2. download xx-flash.deb from adobe website.
3. dpkg -i xx-flash.deb (if not installed libcurl3, this cmd will show the error).
done
Subscribe to:
Posts (Atom)