Skip to main content

Posts

Showing posts from January, 2011

:: setup qemu bridged networking on linux ubuntu

:: setup qemu bridged network + make / setup bridge on interface $ sudo vi /etc/network/interfaces # setup like : auto lo iface lo inet loopback auto br0 iface br0 inet static address 10.100.100.81 netmask 255.255.255.0 network 10.100.100.0 broadcast 10.100.100.255 gateway 10.100.100.1 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off + restarting network interfaces $ sudo /etc/init.d/networking restart :: starting qemu add network options: -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/etc/qemu-ifup ex: $ sudo qemu -cdrom install-x86-minimal-20110111.iso -hda gentoo -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/etc/qemu-ifup :: link + googlelinux + iank

:: xen error: boot loader didn't return any data!

:: xen error Error: Kernel image does not exist: /tmp/vmlinuz.ePFTKG or Error: Boot loader didn't return any data! :: how to fix the error - edit file configure for xen domain $ cd /etc/xen/vm/ $ vi xendomain remove line: kernel="/tmp/vmlinux.blabla" add this line: bootloader="/usr/bin/pygrub" - re-create domain config file $ xm create /etc/xen/vm/xendomain - start xen domain if domain not starting $ xm start xendomain :: link + googlelinux + xensource

:: backup all mysql databases

:: what is please take a look this :: backing up all mysql databases used mysqldump command $ mysqldump --all-databases -u root -p | gzip -9 > db_all.sql.gz Enter password: :: restoring all mysql databases $ tar -xzf db_all.sql.gz $ mysql -u root -p < db_all.sql Enter password: :: links + googlelinux + netadmintools