Tiếng AnhTiếng PhápTiếng Tây Ban Nha

Ad


Biểu tượng yêu thích OnWorks

guestfs-testing - Online in the Cloud

Run guestfs-testing in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command guestfs-testing that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

CHƯƠNG TRÌNH:

TÊN


guestfs-testing - manual testing of libguestfs, you can help!

MÔ TẢ


This page has manual tests you can try on libguestfs. Everyone has a slightly different
combination of platform, hardware and guests, so this testing is very valuable. Thanks
for helping out!

Tests marked with a * (asterisk) can phá hủy dữ liệu if you're not careful. The others are
safe and won't modify anything.

Most of these tests will work with any libguestfs ≥ 1.14. Some of these tests (marked)
require libguestfs ≥ 1.22.

You can report bugs you find through this link:

https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools

or post on the mailing list (registration is không required, but if you're not registered
then you'll have to wait for a moderator to manually approve your message):

https://www.redhat.com/mailman/listinfo/libguestfs

NGHIỆM


chạy libguestfs-test-tool
Chạy:

libguestfs-test-tool

This command does a very simple, non-destructive test that basic libguestfs is
functioning. You don't need to run it as root.

Nếu nó không print "===== TEST FINISHED OK =====", report it as a bug. It is very
important that you include the hoàn thành, chưa chỉnh sửa output of "libguestfs-test-tool" in your
bug report. See the "BUGS" section at the end of this page.

kiểm tra KVM tăng tốc is được đã sử dụng.
If your host has hardware virt acceleration, then with a hot cache libguestfs should be
able to start up in a few seconds. Run the following command a few times:

time guestfish -a /dev/null run

After a few runs, the time should settle down to a few seconds (under 5 seconds on fast 64
bit hardware).

How to check for hardware virt:

http://virt-tools.org/learning/check-hardware-virt/

If the command above does not work at all, use libguestfs-test-tool(1).

kiểm tra cái nào phiên bản of libguestfs, qemu, libvirt, vv is được đã sử dụng.
Look at the output of "libguestfs-test-tool" and check:

· Which version of libguestfs is being used? Near the beginning of the output you'll
see a line like:

library version: 1.22.0fedora=19,release=1.fc19,libvirt

· Is libvirt being used? You can tell the difference by looking for the backend:

guestfs_get_backend: direct

hoặc:

guestfs_get_backend: libvirt

· Which version of qemu is being used? It may be printed out:

libguestfs: qemu version 1.5

but note that if you're using libvirt then libguestfs doesn't have this information.

· Which kernel is being used? siêu nhân(1) will try to pick the latest kernel installed
on your machine. You can see the version in the appliance output, eg:

[ 0.000000] Linux version 3.9.2-200.fc18.x86_64 [...]

Thử đến mở a địa phương khách sạn hình ảnh với guestfish.
You can use any guest disk image for this test. Make sure you use the "--ro" flag so that
cá khách(1) will open the disk image read-only.

guestfish --ro -a /path/to/disk.img -i

If the command is successful, it should print out the guest operating system name and put
you at the guestfish "><fs>" prompt. You can use guestfish commands like "ll /" to look
inside the disk image. To exit, type "exit".

If you get an error, try enabling debugging (add "-v" to the command line). Also make
chắc chắn rằng libguestfs-test-tool(1) succeeds.

Thử đến mở a xa khách sạn hình ảnh với guestfish.
Chú thích this test requires libguestfs ≥ 1.22 and qemu ≥ 1.5. You may also have to disable
libvirt by setting this:

xuất LIBGUESTFS_BACKEND = trực tiếp

If you have a disk image available over HTTP/FTP, try to open it.

guestfish --ro -i --format=raw -a http://www.example.com/disk.img

For SSH you will need to make sure that ssh-agent is set up so you don't need a password
to log in to the remote machine. Then a command similar to this should work:

guestfish --ro -i --format=raw \
-a ssh://remote.example.com/path/to/disk.img

If you get an error, try enabling debugging (add "-v" to the command line). Also make
chắc chắn rằng libguestfs-test-tool(1) succeeds.

chạy ảo căn chỉnh-quét on tất cả các qua một vài thao tác đơn giản về khách.
chạy ảo căn chỉnh-quét(1) on guests or disk images:

virt-alignment-scan -a /path/to/disk.img

hoặc:

virt-alignment-scan -d Guest

Does the alignment report match how the guest partitions are aligned?

chạy mèo ảo on một số các tập tin in khách.
mèo ảo(1) can display files from guests. For a Linux guest, try:

virt-cat LinuxGuest / etc / passwd

A recent feature is support for Windows paths, for example:

virt-cat WindowsGuest 'c:\windows\win.ini'

An even better test is if you have a Windows guest with multiple drives. Do "D:", "E:"
etc paths work correctly?

* Sao chép một số các tập tin trong a đóng cửa off khách mời.
ảo sao chép(1) can recursively copy files and directories into a guest or disk image.

virt-copy-in -d Guest / Etc / Tmp

This should copy local directory / Etc đến /tmp/etc in the guest (recursively). If you boot
the guest, can you see all of the copied files and directories?

Shut the guest down and try copying multiple files and directories:

virt-copy-in -d Guest / Home / etc / issue / Tmp

Sao chép một số các tập tin ra of a khách mời.
ảo sao chép(1) can recursively copy files and directories out of a guest or disk image.

Khách hàng ảo-copy-out -d / Home .

Note the final space and period in the command is not a typo.

This should copy / Home from the guest into the current directory.

chạy virt-df.
đạo đức(1) lists disk space. Run:

đạo đức

You can try comparing this to the results from df(1) inside the guest, but there are some
provisos:

· The guest must be idle.

· The guest disks must be synched using đồng bộ(1).

· Any action such as booting the guest will write log files causing the numbers to
thay đổi.

We don't guarantee that the numbers will be identical even under these circumstances.
They should be similar. It would indicate a bug if you saw greatly differing numbers.

Thử nhập khẩu đạo đức CSV đầu ra trong a bảng tính or cơ sở dữ liệu.
Chạy:

virt-df --csv > /tmp/report.csv

Now try to load this into your favorite spreadsheet or database. Are the results
reproduced faithfully in the spreadsheet/database?

http://www.postgresql.org/docs/8.1/static/sql-copy.html
http://dev.mysql.com/doc/refman/5.1/en/load-data.html

* Chỉnh sửa a hồ sơ in a đóng cửa off khách mời.
chỉnh sửa ảo(1) can edit files in guests. Try this command on a RHEL or Fedora guest:

virt-edit LinuxGuest /etc/sysconfig/network

On other Linux guests try editing other files such as:

virt-edit LinuxGuest /etc/motd

Are the changes seen inside the guest when it is booted?

Giao diện các hệ thống tập tin / điểm số / LVs in a khách mời.
hệ thống tập tin ảo(1) can be used to display filesystems in a guest. Try this command on
any disk image or guest:

virt-filesystems -a /path/to/disk.img --all --long -h

hoặc:

virt-filesystems -d Guest --all --long -h

Do the results match what is seen in the guest?

chạy thanh tra nhân đức on tất cả các qua một vài thao tác đơn giản về khách.
Sử dụng thanh tra nhân đức(1) to get a report on all of your guests or disk images:

virt-inspector -a /path/to/disk.img | less

hoặc:

virt-inspector -d Guest | less

Do the results match what is actually in the guest?

Thử các kiểm toán Tính năng, đặc điểm of đạo đức on tất cả các qua một vài thao tác đơn giản về khách.
Liệt kê tất cả các chương trình setuid hoặc setgid trong máy ảo Linux:

virt-ls -lR -d Guest / | grep '^- [42]'

Liệt kê tất cả các thư mục có thể ghi công khai trong máy ảo Linux:

virt-ls -lR -d Guest / | grep '^d ...7'

Liệt kê tất cả các ổ cắm miền Unix trong máy ảo Linux:

virt-ls -lR -d Guest / | grep '^s'

Liệt kê tất cả các tệp thông thường có tên tệp kết thúc bằng '.png':

virt-ls -lR -d Guest / | grep -i '^-.*\.png$'

Display files larger than 10MB in home directories:

virt-ls -lR -d Guest / Home | awk '$ 3> 10 * 1024 * 1024'

Tìm mọi thứ được sửa đổi trong 7 ngày qua:

virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'

Tìm các tệp thường xuyên được sửa đổi trong 24 giờ qua:

virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'

Do the results match what is in the guest?

Tạo a đĩa hình ảnh từ a tập tin nén.
Sử dụng Virt-make-fs(1) to create a disk image from any tarball that you happen to have:

virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img

Add 'output.img' as a raw disk to an existing guest. Check the guest can see the files.
This test is particularly useful if you try it with a Windows guest.

Try other partitioning schemes, eg. --partition = gpt.

Try other filesystem formats, eg. --type=ntfs, --type=ext2.

* chạy cứu hộ on a đóng cửa off đĩa hình ảnh or khách mời.
Sử dụng cứu hộ(1) to examine, rescue or repair a đóng cửa off guest or disk image:

virt-rescue -a /path/to/disk.img

hoặc:

virt-rescue -d Guest

Can you use ordinary shell commands to examine the guest?

* Thay đổi kích thước qua một vài thao tác đơn giản về khách.
Sử dụng thay đổi kích thước ảo(1) to give a guest some more disk space. For example, if you have a disk
image that is smaller than 30G, increase it to 30G by doing:

truncate -s 30G newdisk.img
virt-filesystems -a /path/to/olddisk.img --all --long -h
virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1
qemu-kvm -m 1024 -hda newdisk.img

Does the guest still boot? Try expanding other partitions.

* Sparsify a khách sạn đĩa.
Sử dụng ảo hóa(1), make a disk image more sparse:

virt-sparsify /path/to/olddisk.img newdisk.img

Is newdisk.img still bootable after sparsifying? Is the resulting disk image smaller (use
"du" to check)?

* "sysprep" a đóng cửa off Linux khách mời.
Chú thích that this really will mess up an existing guest, so it's better to clone the guest
before trying this.

virt-sysprep --hostname newhost.example.com -a /path/to/disk.img

Was the sysprep successful? After booting, what changes were made and were they
thành công?

Dump các Windows Đăng ký từ qua một vài thao tác đơn giản về Windows khách.
Sử dụng ảo-win-reg(1) to dump out the Windows Registry from any Windows guests that you
có.

virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\Software' |
ít

virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\System' |
ít

Does the output match running "regedit" inside the guest?

A recent feature is the ability to dump user registries, so try this, replacing tên truy nhập
with the name of a local user in the guest:

virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\username' |
ít

Use guestfs-testing online using onworks.net services


Máy chủ & Máy trạm miễn phí

Tải xuống ứng dụng Windows & Linux

  • 1
    NSIS: Hệ thống cài đặt tập lệnh Nullsoft
    NSIS: Hệ thống cài đặt tập lệnh Nullsoft
    NSIS (Cài đặt tập lệnh Nullsoft
    System) là một mã nguồn mở chuyên nghiệp
    hệ thống để tạo bộ cài đặt Windows. Nó
    được thiết kế nhỏ và linh hoạt
    như sở hữu ...
    Tải xuống NSIS: Hệ thống cài đặt tập lệnh Nullsoft
  • 2
    xác thực
    xác thực
    AuthPass là một mật khẩu nguồn mở
    quản lý với sự hỗ trợ cho phổ biến và
    Keepass đã được chứng minh (kdbx 3.x VÀ kdbx 4.x ...
    Tải xuống mật khẩu xác thực
  • 3
    Zabbix
    Zabbix
    Zabbix là một công ty mở cấp doanh nghiệp
    nguồn giải pháp giám sát phân tán
    được thiết kế để giám sát và theo dõi
    hiệu suất và tính khả dụng của mạng
    máy chủ, thiết bị ...
    Tải xuống Zabbix
  • 4
    KĐ3
    KĐ3
    Kho lưu trữ này không còn được duy trì
    và được giữ cho mục đích lưu trữ. Nhìn thấy
    https://invent.kde.org/sdk/kdiff3 for
    mã mới nhất và
    https://download.kde.o...
    Tải xuống KDiff3
  • 5
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX là một GUI cho
    Bộ nạp USB của Waninkoko, dựa trên
    libwiigui. Nó cho phép liệt kê và
    khởi chạy trò chơi Wii, trò chơi Gamecube và
    homebrew trên Wii và WiiU ...
    Tải xuống USBLoaderGX
  • 6
    Chim lửa
    Chim lửa
    Firebird RDBMS cung cấp các tính năng ANSI SQL
    & chạy trên Linux, Windows &
    một số nền tảng Unix. Đặc trưng
    đồng thời và hiệu suất tuyệt vời
    & sức mạnh...
    Tải xuống Firebird
  • Khác »

Lệnh Linux

Ad