Cloning Openvz Proxmox PVE container guest machine Rumi, November 4, 2015December 13, 2016 I first created a ‘template’ vm containing all stuff I need and using a temporarily ip adres. In the network config file of eth0 (/etc/sysconfig/network-scripts/ifcfg-eth0) I comment out the HWADDRESS line, else it will not come up with another mac address… Stop this ‘template’ vm as it is just used for cloning. Create a backup : vzdump –dumpdir /path/to/backupdir –snapshot 101 Restore in new container : vzrestore /path/to/backupdir/backupfile_of_container_101 102 or vzrestore –storage ‘storagename’ /path/to/backupdir/backupfile_of_container_101 102 Create a new mac for eth0 : vzctl set 102 –netif_add eth0 Modify the hostname in the proxmox webinterface. Bootup the vm and open a vnc console. Change the ip address in /etc/sysconfig/network-scripts/ifcfg-eth0 Go to /etc/ssh and remove all keys : rm -f /etc/ssh/*key* Restart the ssh server so it will regenerate keys : service sshd restart Related Administrations Configurations (Linux) OpenVZ Cloning VMOpenVZProxmoxPVE
Mount CD or DVD Rom in Linux June 3, 2018 Finding out your CD/DVD names in Linux Use the following command to find out the name Of DVD / CD-ROM / Writer / Blu-ray device on a Linux based system: # lsblk OR # dmesg | egrep -i –color ‘cdrom|dvd|cd/rw|writer’ Sample outputs (/dev/sr0): [ 5.437164] sr0: scsi3-mmc drive: 24x/24x writer… Read More
Check processor and cpu details January 15, 2017 $ cat /proc/cpuinfo | grep vendor | uniq $ cat /proc/cpuinfo | grep ‘model name’ | uniq $ lscpu $ lscpu | grep -i mhz $ cat /proc/cpuinfo | grep -i mhz | uniq $ watch -n 0.1 “cat /proc/cpuinfo | grep -i mhz” $ cat /proc/cpuinfo | grep processor… Read More
Windows IP settings from old Windows network adapters after card replacement July 25, 2022 After replacing an old motherboard with a new one, the NIC is different, has a new MAC address and generally needs a new TCP/IP configuration. However the old NIC is still somewhere there with its designated IP address and the rest. Question: is it possible to retrieve those settings (most important… Read More