Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ KVM add virtual disks     - Use mysqldump backup performed MariaDB (Database)

- CentOS / RedHat system partition essential requirements and partition scheme (Linux)

- Struts2 : combobox label use (Programming)

- Remote installation of Net-SNMP whole process (Linux)

- Build your own Python coding environment (Linux)

- SSH without password Definitive Guide (Linux)

- Netapp storage routine inspections and information gathering (Linux)

- ORA-00020: No more process state objects available (Database)

- OpenSIPS offline messaging feature set (Server)

- Linux memory Cache Analysis (Linux)

- SaltStack installation and testing (Server)

- To_teach you three strategies to prevent the LAN IP address theft (Linux)

- PostgreSQL Source Customization: Online global read only (Database)

- Use Vagrant build cross-platform development environment for Python (Server)

- To install Emacs under CentOS 6.5 (Linux)

- PHP loop reference caused strange problems (Programming)

- Compare Oracle MySQL (ICP) index condition pushdown is described (Database)

- innodb storage engine backup tool --Xtrabackup (Database)

- Ubuntu installation module Python rq (Linux)

- C ++ How to determine the types of constants (Programming)

 
         
  KVM add virtual disks
     
  Add Date : 2018-11-21      
         
         
         
  1. Using a graphical interface "Virtual Machine Manager" Add a Virtual Disk

2. Character interface:
Add a qcow2
 [Root @ localhost ~] # qemu-img create -f qcow2 kvm-clone.qcow2 2G
Formatting 'kvm-clone.qcow2', fmt = qcow2 size = 2147483648 encryption = off cluster_size = 65536

Add disk configuration file:
[Root @ localhost ~] # virsh edit CentOS-virt-clone
virsh edit centos-virt-clone
  < Disk type = 'file' device = 'disk'>
      < Driver name = 'qemu' type = 'qcow2' cache = 'none' />
      < Source file = '/ root / kvm-clone-add.qcow2' />
      < Target dev = 'vdb' bus = 'virtio' />
    < / Disk>

Open a virtual machine, an error occurs:
[Root @ localhost ~] # virsh start centos-virt-clone
Error: Start Domain centos-virt-clone failed
Error: internal error Process exited while reading console log output: char device redirected to / dev / pts / 2
2015-02-02T11: 13: 45.039620Z qemu-kvm: -drive file = / root / kvm-clone.qcow2, if = none, id = drive-virtio-disk3, format = qcow2, cache = none: could not open disk image /root/kvm-clone.qcow2: Permission denied


Restart "libvirtd"
vim / etc / libvir
user = "root"
# The group for QEMU processes run by the system instance. It can be
# Specified in a similar way to user.
group = "root"
dynamic_ownership = 0
[Root @ localhost ~] # /etc/init.d/libvirtd restart

Open a virtual machine:
[Root @ localhost ~] # virsh start centos-virt-clone
Domain centos-virt-clone has begun

3. Add online virtual disk:
virsh attach-disk oeltest02 /data/test02_add01.qcow2 sdb --cache = none --subdriver = qcow2
     
         
         
         
  More:      
 
- Linux security configuration (Linux)
- HashMap in Android and Java different implementations (Programming)
- Linux kernel likely and unlikely to resolve macro definitions (Linux)
- Ubuntu modify locale problem solving (Linux)
- Linux systems for entry-learning: Install closed-source packages in Debian (Linux)
- Linux Network Programming --TCP and UDP datagram type Explanation (Programming)
- How to run Kali Linux 2.0 in Docker container (Linux)
- How to create an alternative Android / iOS connected wireless hotspot AP in Ubuntu 15.04 (Linux)
- How to install Linux Kernel 4.4 on Ubuntu (Linux)
- Linux Operating System Security Management Experience (Linux)
- Install Java JDK 8 in CentOS 7 / 6.5 / 6.4 (Linux)
- How to make a U disk to install Ubuntu (Linux)
- Build RubyMine + Ruby On Rails + MySQL development environment under Windows (Server)
- Installation in lxml Python module (Linux)
- TL-WR703N to install OpenWrt process notes (Linux)
- Ubuntu 14.04 install Sublime Text 3 plug and use SublimeClang (Linux)
- Preview function to confirm the stop resource Oracle 12c new feature crsctl (Database)
- Java Set and List in the relationship and difference (Programming)
- Getting case of Python Hello World (Programming)
- Linux operating system security management skills (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.