OS Categories

Where almost everything resides.

If by mistake (or even conscious) you did configure a solaris 10 or bellow with DHCP and you want to disable it and set fixed IP, there are several steps you should follow... There is a file called dhcp.interface_name in /etc that we must delete. Now, create the file /etc/nodename with the hostname inside. # echo webserver > /etc/nodename now, create a file called hostname., where interface is the name of the device in solaris, like bge0, e1000g0, ce0, etc. # echo webserver > /etc/hostname.bge0 Now, Read more...
Some time ago we explained how to convert an .vmdk file to a XEN compatible RAW file, today we are going to review how to convert one .vmdk to a virtualbox compatible .vdi disk. First, create a virtual disk from preallocated to growable as we already saw. I will use one XPSP2 vmware disk. # vmware-vdiskmanager -r XPSP2.vmdk -t 0 hardrive-preallocated.vmdk Convert the file again to a .bin file with the help of quemu like: # qemu-img convert hhardrive-preallocated.vmdk hardrive-raw-file.bin And Read more...
To copy the partition table and MBR from a disk to create the same definition of partitions as in other, you have to copy the first 512 blocks from the header of the disks like with the next command to copy it to another disk for mirroring two disks without create the partition in both disks: # dd if=/dev/sda of=/dev/sdb bs=512 count=1 This is correct for EXACTLY the same partition sizes. In the case you want the MBR only on a drive that has a root partition of a different size then issue the same Read more...
Sometimes we would like to access directly to the data of a XEN virtual machine just mounting the volume that act as physical device in the virtual machine, instead of booting it with a recovery cd, like in case of a faulty change in a configuration file inside the VM. Be careful!, this must be run stopping first the virtual machine. Let's start checking the name of the physical volume containing a linux virtual machine inside (it works with windows data, but check NTFS support in XEN first). [root@xenserver2 Read more...