このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 2024.01.18 RailsでSSLエラー 以前のリビジョンを復元 (2024/01/18 07:06)
- 31 CentOS5 TLS1.2 created
- 2024.04.12 MySQL BIT Field created
最近の更新
文書の過去の版を表示しています。
# yum install guestfish
export LIBGUESTFS_BACKEND=direct
guestfish –rw -a file.img -i
### -i を指定すればmountまで自動でやってくれる
### ><fs> run
### ><fs> list-filesystems
### /dev/vda1: ext4
### /dev/vg_hoge/lv_root: ext4
### /dev/vg_hoge/lv_swap: swap
### ><fs> mount /dev/vg_svxxx/lv_root /
<fs> cat /etc/hosts
127.0.0.1 hoge localhost localhost.localdomain
<fs> ls /tmp
<fs> write /tmp/hoge “hoge hoge”
<fs> cat /tmp/hoge
hoge hoge
<fs> sync
<fs> quit
</code>
><fs> run libguestfs: error: could not create appliance through libvirt. Try running qemu directly without libvirt using this environment variable: export LIBGUESTFS_BACKEND=direct Original error from libvirt: internal error: process exited while connecting to monitor: 2020-03-14T01:24:09.421429Z qemu-kvm: -chardev socket,id=charserial0,path=/tmp/libguestfslvIvvg/console.sock: Failed to connect socket /tmp/libguestfslvIvvg/console.sock: Permission denied [code=1 int1=-1]