How to expose raw SATA disks in KVM guest

I have a CentOS 7.3 64-bit host OS and KVM version (1.xxx) and need to run Fedora Core 13 (32-bit) as guest OS. I have recent hardware which has some SATA and IDE disks attached to it.

I configured it to expose the raw SATA disks (config is as below), but the guest OS lists them as SCSI whereas I would expect it to show up as SATA.

Just to check if this is an issue with KVM I installed CentOS 7.3 as a guest OS (that is same host and guest OS), and the SATA disk lists as ATA (is this your expected behavior and correct? you need to confirm this).

Just to see if anything changes if I upgrade KVM, on another machine (where I don’t have SATA disk) I upgraded KVM to centos-release-qemu-evm KVM 2.x (with CentOS 7.6) and created a file based SATA disk – this also shows up as SCSI in Fedora 13 (32-bit) guest OS.

How do we get to expose a SATA disk as SATA in the guest OS Fedora 13 (32-bit) ? Also we have some IDE disks and would like to expose them as IDE in the Fedora 13 guest, how can we go about it ?

Appreciate all help.

Do I need to setup a Docker network to expose container to the Internet, and if so, how to do it?


Summary

I mounted a local Jenkins Build Server in a local Docker Container and exposed ports 8080 both from the host to the Jenkins container.

I want to test the integration of Jenkins with Azure DevOps so Jenkins is the build server for the project.

Container is reachable from localhost:8080 and responds well.

In Windows 10 Firewall I created two port rules:

  1. Inbound, TCP, Local Port: All, Remote Port: All
  2. Inbound, UDP, Local Port: All, Remote Port: All

In my Bell Fibe HomeHub 2000 I created a port forwarding for:

  • External port 80
  • Internal port 8080
  • to my local machine IP address

When I try to access my [public ip address]:80, it says that “This site can’t be reached”.

Related SF Question

Webserver in Docker container is not reachable via the Internet

And I’m unsure as to how to proceed or even if it’s necessary. I’m rather a software architect than a system admin, and I don’t really understand the need of a Docker network if my ports forwarding is right.

Is it secure to expose OAuth2 credentials for a test application

I have created an application in which it is possible to login using GitLab. This requires an OAuth2 app id and secret.

I created a test application in GitLab UI with the redirect set to https://localhost:9999 for local development.

Since the redirect URL is on localhost, I wonder if there are any security concerns when committing this app id and secret. It is definitely convenient.

how to expose complex actions in RESTApi using http verbs

consider the following REST resource Account account – number – name – customer – type of account – status – balance – rating

now we have CRUD operations for add (http post) edit (http put) delete (http delete) get (http get)

how to expose other functionality that does not correspond to CRUD for instance – deduct tax – make account dormant – change account type and apply charges – and many others that don’t change much in the resource but trigger a chain of actions. my question is how to expose that functionality if REST only allows the nouns and no verbs. it does not make sense to use edit http verb to initiate these actions. what is the recommended way

Is it good to expose the score of a relevance search to the user

So, our main search tool will get a relevance search, which means that the output is somewhat sorted by how important an entry is. Before that the entries were sorted by date and if two entries had the same date the order of the entries was not specified.

If a customer is going to search for some stuff with the relevance search the table is ordered by how many words are hit in several fields, also the date has some influence.

The order of the entries is calculated by the backend (or db, i don’t know) and could be exposed in the user facing table as an own column, which could also be used to filter entries with low relevance aka low score.

I feel like this should not be done, because mainly I think it is wrong to burden the user with complexity used to give an elegant behaviour. But the rest of the team insists on doing it, to give the user the power to filter irrelevant entries.

So is there a general advice? Is it a good idea? Is someone doing it?

I am thankful for every answer.

best regards Jan

Azure Expose Local LAN Point-To-Site

I’m trying to setup a Point-to-Site VPN using Azure VNet Gateway that would expose the LAN behind the client.

I’ve done this with success using OpenVPN (using route and iroute) but I couldn’t find any documentation that supports that this would work on Azure.

My idea is to connect an On-Premises machine to the VNet, creating an Hybrid Network, that VNet would have routing rules that would route the traffic to my On-Premises LAN to the VPN Client.

That VPN Client would have packet forward enabled, pushing the packets to the correct destination on LAN.

Has anyone done anything similar on Azure? A diagram would be:

LAN <–> On-Premises Server connected to VNET through VPN <–> Azure VNet

Best regards Tiago

How should domain model entities expose information about the current state of their properties?

I’m new to DDD, so please bear with me.

I am trying to design a domain model around an extremely large and complex existing system, where most of the current “domain” logic is either in the UI or in the persistence tier. The need is to begin moving some of this logic into a domain model that can be used for our server (such as APIs) or client application. I can’t move all that logic to the domain model yet, but we can certainly start.

There are several things that we’re planning on rolling into the domain model that would be shared between our client application and the server:

  • Logical structure of our domain.
    • Currently all tiers talk to the system using something that matches the database structure, and that’s just not how the concepts in our domain are structured.
  • Typical domain events. X happened, so do Y.
    • Y could also make other values in the domain model required or not, so it would impact validation.
  • Validating themselves based on their state (field B required because A has a certain value).

In addition to any server handling of the domain, we have the need for our user interface (C#/WPF application) to show users the current state of the domain as they manipulate it. We’re planning on running parts of the domain model in the client application and exposing it to the UI with appropriate view models. We’ll have fields that get wired up (not directly) to the domain model’s entities so that as users enter in values the domain model can respond to those inputs and perform the appropriate domain events.

Any one entity will be responsible for several things

  • Knowing what properties are required
    • Updates to the set of required fields would be handled by domain events
  • Knowing what value is appropriate for individual properties
    • Strings must be no longer than X characters, or a value cannot be negative

Due to the nature of data entry, it’s possible for an entity to be invalid at any particular point before a save validation is triggered.

This means that the entities need a way to track what field is required at any one moment and whether those fields have satisfactory values. This would be in addition to any cross-entity validations that must be enforced; such as having each entity in a collection requiring distinct values for a particular property.

So, to my question:

What is a good pattern for the domain model to expose metadata about its properties to facilitate the needs of our application?

Examples of this metadata:

  • Is it currently required, invalid, or not available at any one moment
  • What values are even allowed
  • Perhaps extending this concept to allow the domain model to state what is wrong with a particular field

This metadata would end up being reflected in the UI (required fields would show as such) and it would be used during validation of the domain model.

if an app,webpage, or site, freezes or crashes, does that expose your password or sensitive data? [on hold]

This is probably a silly question and I apologize in advance, If you are in an app, webpage, or site and it freezes or crashes and you have to restart it, does that affect your password in any way like should you change it or worry about changing your password or is there no connection?

Thanks