我的系统出现问题,现在我无法访问 rhel 存储库。订阅管理器本身不存在。如何安装订阅管理器。
主页
/
user-90600
munish's questions
munish
Asked:
2018-12-24 02:09:52 +0800 CST
[msingh@centos images]$ qemu-img info IE11-Win7-VMWare-disk1.qcow2
image: IE11-Win7-VMWare-disk1.qcow2
file format: qcow2
virtual size: 40G (42949672960 bytes)
disk size: 82G
cluster_size: 65536
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
2 freshInstall 0 2018-11-16 15:41:01 00:00:00.000
3 freshInstallActivated 3.5G 2018-11-17 02:50:15 00:06:45.305
4 90DayActivation 0 2018-11-17 09:06:41 00:00:00.000
Format specific information:
compat: 1.1
lazy refcounts: false
如上所示,可以看到 ID 为 2、3、4 的快照,但我无法使用下面的 virsh 命令看到它。这些快照也会导致磁盘大小和虚拟大小存在很大差异
[msingh@centos images]$ sudo virsh snapshot-list Windows7FreeIE11
Name Creation Time State
------------------------------------------------------------
[msingh@centos images]$
由于存储空间限制,这发生在我将 IE11-Win7-VMWare-disk1.qcow2 映像文件移动到另一个文件系统之后。
我如何删除快照,因为 virsh 命令不起作用,因为它找不到 qemu-img 列出的快照。
[msingh@centos images]$ sudo virsh list --all
[sudo] password for msingh:
Id Name State
----------------------------------------------------
1 Windows7FreeIE11 running
- centos7.0 shut off
- win10 shut off
munish
Asked:
2018-11-22 01:57:49 +0800 CST
尝试安装 pidgin-screenshot 时sudo ./configure --prefix=/usr
出现此错误:
checking whether libcurl is usable... no
configure: error:
To compile this plugin *with* upload support, you must have :
- libcurl >= 7.19.1 (no) and glib>=2.14.0 (not checked).
但我两者都有 libcurl >= 7.19.1
并且glib>=2.14.0
可用
[msingh@centos pidgin-sendscreenshot-0.8]$ sudo yum list installed libcurl glib2
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* elrepo: mirrors.coreix.net
* epel: epel.mirror.angkasa.id
* extras: centos.excellmedia.net
* ius: syd.mirror.rackspace.com
* nux-dextop: mirror.li.nux.ro
* updates: centos.excellmedia.net
Installed Packages
glib2.i686 2.54.2-2.el7 @base
glib2.x86_64 2.54.2-2.el7 @anaconda
libcurl.x86_64 7.29.0-46.el7
[msingh@centos pidgin-sendscreenshot-0.8]$ rpm -ql libcurl | grep /usr/lib64
/usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4.3.0
[msingh@centos pidgin-sendscreenshot-0.8]$ rpm -ql glib2 | grep /usr/lib64
/usr/lib64/gio
/usr/lib64/gio/modules
/usr/lib64/gio/modules/giomodule.cache
/usr/lib64/libgio-2.0.so.0
/usr/lib64/libgio-2.0.so.0.5400.2
/usr/lib64/libglib-2.0.so.0
/usr/lib64/libglib-2.0.so.0.5400.2
/usr/lib64/libgmodule-2.0.so.0
/usr/lib64/libgmodule-2.0.so.0.5400.2
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.5400.2
/usr/lib64/libgthread-2.0.so.0
/usr/lib64/libgthread-2.0.so.0.5400.2
[msingh@centos pidgin-sendscreenshot-0.8]$
我相信它是向内看,/usr/lib
而不是向内看/usr/lib64
。我如何确保安装命令在目录中查找/usr/lib64
所需库而不是/usr/lib
munish
Asked:
2018-11-19 01:16:44 +0800 CST
从 qemu 得到以下错误:
Unable to complete install: 'Cannot access storage file '/run/media/msingh/WDELEMENTS1/test/CentOsRestoreTest.qcow2' (as uid:107, gid:107): Permission denied'
所以试图以root身份更改所有权,但仍然失败:
[root@centos ~]# chown qemu.qemu /run/media/msingh/WDELEMENTS1/test/CentOsRestoreTest.qcow2
chown: changing ownership of ‘/run/media/msingh/WDELEMENTS1/test/CentOsRestoreTest.qcow2’: Operation not permitted
有关路径/驱动器的信息:
[root@centos ~]# df -hT /dev/sda1
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 vfat 2.8T 55G 2.7T 2% /run/media/msingh/WDELEMENTS1
munish
Asked:
2013-05-07 03:30:35 +0800 CST
在 Unix 中,如果我们这样做echo $?
,它会显示最后执行的命令的状态。
其中$?
包含值 0 或 1:
- 0 表示成功
- 1 表示失败
但是我们如何知道在 Cisco 交换机中执行的命令的状态呢?